﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OnWork.Admin.Util.Base
{
    /// <summary>
    /// 业务异常处理
    /// </summary>
    public class BError
    {
        public static void Error(string errors, int statuscode = 400)
        {
            throw new BusinessException(errors);
        }
    }

    /// <summary>
    /// 自定义异常 业务异常
    /// </summary>
    public class BusinessException : Exception
    {
        public BusinessException(string message) : base(message)
        {
        }
    }
}